Handle fullscreen parameter in initial/defult-frame-alist for NS.
authorJan D. <jan.h.d@swipnet.se>
Sat, 6 Oct 2012 17:31:11 +0000 (19:31 +0200)
committerJan D. <jan.h.d@swipnet.se>
Sat, 6 Oct 2012 17:31:11 +0000 (19:31 +0200)
commitcfd30a573444cb666477daa24458c5a51d42a572
treeabef353a603667486be3ff3ebcc2064786a5cd2f
parent0d9c33b7550e79fc2e9e97fa3bb65825045e47fc
Handle fullscreen parameter in initial/defult-frame-alist for NS.

* nsfns.m (Fx_create_frame): Call x_default_parameter with
fullscreen/Fullscreen.

* nsterm.h (EmacsView): Rename tbar_height to tibar_height.
tobar_height is new.

* nsterm.m (x_make_frame_visible): Check for fullscreen.
(ns_fullscreen_hook): Activate old style fullscreen with a timer.
(ns_term_init): Set activateIgnoringOtherApps if old style fullscreen.
(windowDidResize:): Check for correct window if old style fullscreen.
Capitalize word in comment.  Remove incorrect comment.
(initFrameFromEmacs:): tbar_height renamed tibar_height.
(windowDidEnterFullScreen:): Toggle toolbar for fullscreen to fix
error in drawing background.
(toggleFullScreen:): Remove comment. Rearrange calls.
Set toolbar values to zero, save old height in tobar_height.
Restore tool bar height when leaving fullscreen.
(canBecomeMainWindow): New function.
src/ChangeLog
src/nsfns.m
src/nsterm.h
src/nsterm.m